﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014EB RID: 5355
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class Vector4 : IMessage<Vector4>, IMessage, IEquatable<Vector4>, IDeepCloneable<Vector4>, IBufferMessage
	{
		// Token: 0x17004371 RID: 17265
		// (get) Token: 0x0600EF97 RID: 61335 RVA: 0x0027FE28 File Offset: 0x0027E028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<Vector4> Parser
		{
			get
			{
				return Vector4._parser;
			}
		}

		// Token: 0x17004372 RID: 17266
		// (get) Token: 0x0600EF98 RID: 61336 RVA: 0x0027FE2F File Offset: 0x0027E02F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return Vector4Reflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004373 RID: 17267
		// (get) Token: 0x0600EF99 RID: 61337 RVA: 0x0027FE41 File Offset: 0x0027E041
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return Vector4.Descriptor;
			}
		}

		// Token: 0x0600EF9A RID: 61338 RVA: 0x0027FE48 File Offset: 0x0027E048
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Vector4()
		{
		}

		// Token: 0x0600EF9B RID: 61339 RVA: 0x0027FE50 File Offset: 0x0027E050
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Vector4(Vector4 other) : this()
		{
			this.z_ = other.z_;
			this.w_ = other.w_;
			this.y_ = other.y_;
			this.x_ = other.x_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EF9C RID: 61340 RVA: 0x0027FEA4 File Offset: 0x0027E0A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Vector4 Clone()
		{
			return new Vector4(this);
		}

		// Token: 0x17004374 RID: 17268
		// (get) Token: 0x0600EF9D RID: 61341 RVA: 0x0027FEAC File Offset: 0x0027E0AC
		// (set) Token: 0x0600EF9E RID: 61342 RVA: 0x0027FEB4 File Offset: 0x0027E0B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public float Z
		{
			get
			{
				return this.z_;
			}
			set
			{
				this.z_ = value;
			}
		}

		// Token: 0x17004375 RID: 17269
		// (get) Token: 0x0600EF9F RID: 61343 RVA: 0x0027FEBD File Offset: 0x0027E0BD
		// (set) Token: 0x0600EFA0 RID: 61344 RVA: 0x0027FEC5 File Offset: 0x0027E0C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public float W
		{
			get
			{
				return this.w_;
			}
			set
			{
				this.w_ = value;
			}
		}

		// Token: 0x17004376 RID: 17270
		// (get) Token: 0x0600EFA1 RID: 61345 RVA: 0x0027FECE File Offset: 0x0027E0CE
		// (set) Token: 0x0600EFA2 RID: 61346 RVA: 0x0027FED6 File Offset: 0x0027E0D6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public float Y
		{
			get
			{
				return this.y_;
			}
			set
			{
				this.y_ = value;
			}
		}

		// Token: 0x17004377 RID: 17271
		// (get) Token: 0x0600EFA3 RID: 61347 RVA: 0x0027FEDF File Offset: 0x0027E0DF
		// (set) Token: 0x0600EFA4 RID: 61348 RVA: 0x0027FEE7 File Offset: 0x0027E0E7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public float X
		{
			get
			{
				return this.x_;
			}
			set
			{
				this.x_ = value;
			}
		}

		// Token: 0x0600EFA5 RID: 61349 RVA: 0x0027FEF0 File Offset: 0x0027E0F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as Vector4);
		}

		// Token: 0x0600EFA6 RID: 61350 RVA: 0x0027FF00 File Offset: 0x0027E100
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(Vector4 other)
		{
			return other != null && (other == this || (ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(this.Z, other.Z) && ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(this.W, other.W) && ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(this.Y, other.Y) && ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(this.X, other.X) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EFA7 RID: 61351 RVA: 0x0027FF94 File Offset: 0x0027E194
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Z != 0f)
			{
				num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(this.Z);
			}
			if (this.W != 0f)
			{
				num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(this.W);
			}
			if (this.Y != 0f)
			{
				num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(this.Y);
			}
			if (this.X != 0f)
			{
				num ^= ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(this.X);
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EFA8 RID: 61352 RVA: 0x0028003A File Offset: 0x0027E23A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EFA9 RID: 61353 RVA: 0x00280042 File Offset: 0x0027E242
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EFAA RID: 61354 RVA: 0x0028004C File Offset: 0x0027E24C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Z != 0f)
			{
				output.WriteRawTag(37);
				output.WriteFloat(this.Z);
			}
			if (this.W != 0f)
			{
				output.WriteRawTag(69);
				output.WriteFloat(this.W);
			}
			if (this.X != 0f)
			{
				output.WriteRawTag(77);
				output.WriteFloat(this.X);
			}
			if (this.Y != 0f)
			{
				output.WriteRawTag(117);
				output.WriteFloat(this.Y);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EFAB RID: 61355 RVA: 0x002800F4 File Offset: 0x0027E2F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Z != 0f)
			{
				num += 5;
			}
			if (this.W != 0f)
			{
				num += 5;
			}
			if (this.Y != 0f)
			{
				num += 5;
			}
			if (this.X != 0f)
			{
				num += 5;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EFAC RID: 61356 RVA: 0x00280160 File Offset: 0x0027E360
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(Vector4 other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Z != 0f)
			{
				this.Z = other.Z;
			}
			if (other.W != 0f)
			{
				this.W = other.W;
			}
			if (other.Y != 0f)
			{
				this.Y = other.Y;
			}
			if (other.X != 0f)
			{
				this.X = other.X;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EFAD RID: 61357 RVA: 0x002801EC File Offset: 0x0027E3EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EFAE RID: 61358 RVA: 0x002801F8 File Offset: 0x0027E3F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 69U)
				{
					if (num == 37U)
					{
						this.Z = input.ReadFloat();
						continue;
					}
					if (num == 69U)
					{
						this.W = input.ReadFloat();
						continue;
					}
				}
				else
				{
					if (num == 77U)
					{
						this.X = input.ReadFloat();
						continue;
					}
					if (num == 117U)
					{
						this.Y = input.ReadFloat();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005EAB RID: 24235
		private static readonly MessageParser<Vector4> _parser = new MessageParser<Vector4>(() => new Vector4());

		// Token: 0x04005EAC RID: 24236
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005EAD RID: 24237
		public const int ZFieldNumber = 4;

		// Token: 0x04005EAE RID: 24238
		private float z_;

		// Token: 0x04005EAF RID: 24239
		public const int WFieldNumber = 8;

		// Token: 0x04005EB0 RID: 24240
		private float w_;

		// Token: 0x04005EB1 RID: 24241
		public const int YFieldNumber = 14;

		// Token: 0x04005EB2 RID: 24242
		private float y_;

		// Token: 0x04005EB3 RID: 24243
		public const int XFieldNumber = 9;

		// Token: 0x04005EB4 RID: 24244
		private float x_;
	}
}
